package com.py.purchase.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.springframework.data.annotation.Transient;

/**
 * ${subTable.functionName}对象 od_purchase_details
 *
 * @author 童佳
 * @date 2024-11-21
 */
public class OdPurchaseDetails extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 进货明细主键 */
    private Long phDetailsId;

    /** 进货订单编号 */
    @Excel(name = "进货订单编号")
    private String phCode;

    /** 货品名称 */
    @Excel(name = "货品名称")
    private String productName;

    /** 货品编码 */
    @Excel(name = "货品编码")
    private String productCode;

    /** 规则型号 */
    @Excel(name = "规则型号")
    private String productModel;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 货品类型 */
    @Excel(name = "货品类型")
    private String productType;

    /** 当前库存 */
    @Excel(name = "当前库存")
    private Long inventory;

    /** 货品数量 */
    @Excel(name = "货品数量")
    private Long productNum;

    /** 进货单价 */
    @Excel(name = "进货单价")
    private BigDecimal price;

    @Excel(name = "已入库数量")
    private Integer alreadyNum;


    /** 退货数量 */
    @Excel(name = "退货数量")
    private Long rejectedNum;

    private String isDel;

    @Transient
    private Integer currentInventory;

    public Integer getCurrentInventory() {
        return currentInventory;
    }

    public void setCurrentInventory(Integer currentInventory) {
        this.currentInventory = currentInventory;
    }

    public String getIsDel() {
        return isDel;
    }

    public void setIsDel(String isDel) {
        this.isDel = isDel;
    }

    public Integer getAlreadyNum() {
        return alreadyNum;
    }

    public void setAlreadyNum(Integer alreadyNum) {
        this.alreadyNum = alreadyNum;
    }

    public void setPhDetailsId(Long phDetailsId)
    {
        this.phDetailsId = phDetailsId;
    }

    public Long getPhDetailsId() 
    {
        return phDetailsId;
    }
    public void setPhCode(String phCode) 
    {
        this.phCode = phCode;
    }

    public String getPhCode() 
    {
        return phCode;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setProductCode(String productCode) 
    {
        this.productCode = productCode;
    }

    public String getProductCode() 
    {
        return productCode;
    }
    public void setProductModel(String productModel) 
    {
        this.productModel = productModel;
    }

    public String getProductModel() 
    {
        return productModel;
    }
    public void setUnit(String unit)
    {
        this.unit = unit;
    }

    public String getUnit()
    {
        return unit;
    }
    public void setProductType(String productType) 
    {
        this.productType = productType;
    }

    public String getProductType() 
    {
        return productType;
    }
    public void setInventory(Long inventory) 
    {
        this.inventory = inventory;
    }

    public Long getInventory() 
    {
        return inventory;
    }
    public void setProductNum(Long productNum) 
    {
        this.productNum = productNum;
    }

    public Long getProductNum() 
    {
        return productNum;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setRejectedNum(Long rejectedNum) 
    {
        this.rejectedNum = rejectedNum;
    }

    public Long getRejectedNum() 
    {
        return rejectedNum;
    }


    @Override
    public String toString() {
        return "OdPurchaseDetails{" +
                "phDetailsId=" + phDetailsId +
                ", phCode='" + phCode + '\'' +
                ", productName='" + productName + '\'' +
                ", productCode='" + productCode + '\'' +
                ", productModel='" + productModel + '\'' +
                ", unit='" + unit + '\'' +
                ", productType='" + productType + '\'' +
                ", inventory=" + inventory +
                ", productNum=" + productNum +
                ", price=" + price +
                ", alreadyNum=" + alreadyNum +
                ", rejectedNum=" + rejectedNum +
                ", isDel='" + isDel + '\'' +
                ", currentInventory=" + currentInventory +
                '}';
    }
}
